package com.jiuli_travel.common;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class MyTaskScheduler {

    @Scheduled(fixedDelay = 5000)
    public void taskWithFixedDelay() {
//        System.out.println("Task executed with fixed delay of 5 seconds since the last completion.");
        // 实现您的定时任务逻辑
    }
}